#ifndef CLOG_H
#define CLOG_H
#include<string>
#include <fstream>

namespace yssdk
{
class CLog
{
public:
	CLog(void);
	~CLog(void);
	static CLog& GetLogInstances()   //Gets the log instance
	{
		static CLog log;          //Single mode
		return log;
	}
	bool openLog(std::string filename); //open log file;
	void LogTime(std::string &str);     //current time
	void writeLog(std::string text);   //wirte log to file
private:
	std::ofstream m_outfile;
};
#define g_log CLog::GetLogInstances()
}
#endif // CLOG_H
